<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="./../template/WorkspaceTemplate.xhtml">

    <ui:define name="top">

    </ui:define>

    <ui:define name="left">

    </ui:define>

    <ui:define name="right">

    </ui:define>

    <ui:define name="content">

        <h:form id="storeReceiptForm" style="font-size: 85%">
            <h2>View Supplier Receipt</h2>
            <br/>
            <p:panel>
                <p:messages />
                <br/>
                <h:panelGrid columns ="4" cellpadding="10">
                    <h:outputLabel value="Receipt Number: " style="font-weight: bold"/>
                    <h:outputText value="#{srManagerBean.receipt.supplierReceiptNo}" />
                    <h:outputText value=""/>
                    <h:outputText value=""/>

                    <h:outputLabel value="Receipt Amount: " style="font-weight: bold"/>
                    <h:outputText value="#{srManagerBean.receipt.receiptAmount}">
                        <f:convertNumber type="currency"/>
                    </h:outputText>
                    <h:outputText value=""/>
                    <h:outputText value=""/> 
                </h:panelGrid>

                <br/>
                <br/>
                <br/>
                <h:outputLabel value="Supplier Receipt File" style="font-weight: bold"/>
                <p:separator/>
                <br/>
                <p:graphicImage value="#{facesContext.externalContext.requestContextPath}/../displayImage?id=#{srManagerBean.receipt.uploadedImage.id}" width="100%"/>
            </p:panel>

            <br/>
            <br/>

            <br/>
            <br/>
            
        </h:form>

    </ui:define>

    <ui:define name="bottom">

    </ui:define>

</ui:composition>
